package com.vincent.utils;

import com.vincent.common.Command;

/**
 * Created by wensen on 2016/12/9.
 */
public class RequestCommand extends Command{

    private Operation op;
    public RequestCommand(int client, long id, Operation op) {
        super(client, id);
        this.op = op;
    }

    public Operation operation() {
        return this.op;
    }

    public String toString() {
        return "{Command [client:  " + this.client()
                + " req_id: " + this.req_id()
                + " operation: " + op + "]}";
    }

}
